package day0813;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/14
 * @Time: 10:23
 * @Description
 * 作业标题(1693)
 * 递归求 N 的阶乘
 */
public class text1 {
    public static void main(String[] args) {
        System.out.println(factorial(5));
    }
    public static int  factorial(int n){
        if(0==n||1==n){
            return 1;
        }
        return factorial(n-1)*n;
    }

}
